// 从url取值
function getQueryString(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}
// 从url取值关于文本
function GetRequest() {
    var url = decodeURI(decodeURI(location.search));
    var theRequest = new Object();
    if (url.indexOf("?") != -1) {
        var str = url.substr(1);
        strs = str.split("&");
        for (var i = 0; i < strs.length; i++) {
            theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
        }
        return theRequest;
    }
}
//点击图片放大
$(document).on('click', '.addPictureBtn', function () {
  var img=$(this).attr('src');
  $(".pic").attr('src',img);
  $(".expand,.pic-box").show();
});
$('.expand,.pic-box').click(function () {
  $('.expand,.pic-box').hide()
});
